<!DOCTYPE html>
<html lang="en" style="font-size: 75px">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
</head>
<body>
    <div class="container">
        <div class="header"></div>
        <div class="main">
            <div class="left"></div>
            <div class="right"></div>
        </div>
    </div>

    <script>
        function adapter(){
            document.documentElement.style.fontSize = document.documentElement.clientWidth / 10 + 'px';
        }

        adapter();
        window.onresize = adapter;
    </script>
</body>
</html>